package com.seu.design.principle.compositionaggregation;

/**
 * @author liangfeihu
 * @since 2018/11/1 15:49
 */
public class Test {
    public static void main(String[] args) {
        ProductDao productDao = new ProductDao();
        productDao.setDbConnection(new PostgreSQLConnection());
        productDao.addProduct();
    }
}
